package com.jc.service.user;

import com.jc.ds.base.service.BaseService;
import com.jc.ds.model.User;

import java.util.Map;

public interface UserService extends BaseService<User, Long> {
    User doLoginCheck(String userName, String passWord);

    Boolean userAdd(String userName, String passWord, String realName);

    Map<String, Object> userQuery(String userName, String name, String start, String limit);

    int userUpdate(String id, String userName, String realName, String passWord);

    int userDelete(int id);

    Map<String, Object> selectAllUserName();

    Map<String, Object> selectAllName();


    /***
     *根据用户id查询用户
     */
    Map<String, Object> queryUserById(Map<String, Object> params);

    /***
     *用户到角色
     */
    Map<String, Object> userToRole(Map<String, Object> params);

    /**
     * 查询用户
     */
    Map<String, Object> userQueryByName(String name);

    /***
     *根据用户ids查询用户
     */
    Map<String, Object> queryUserByIds(Map<String, Object> params);
}
